#include "Server.hpp"

int main()
{
    Buffer buf;
    std::string str = "Wangzihao\n";
    buf.WriteStringAndPush(str);

    Buffer buf1;
    buf1.WriteBufferAndPush(buf);

    std::string tmp;
    tmp = buf1.ReadAsStringAndPop(buf1.ReadAbleSize());

    std::cout << tmp << std::endl;
    std::cout << buf.ReadAbleSize() << std::endl;
    std::cout << buf1.ReadAbleSize() << std::endl;
    return 0;
}